<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2D转换之旋转</title>
  <style>
    body {
      /* margin: 0 auto; */
    }
    img {
      margin-top: 100px;
      margin-left: 100px;
      width: 100px;
      /* 顺时针旋转45度 */
      /* transform: rotate(45deg); */

      border-radius: 50%;
      border: 1px solid pink;
      transition: all 1s;
    }

    img:hover {
      transform: rotate(360deg);
    }
  </style>
</head>
<body>

  <img src="images/ldh.jpg" alt="">
  
</body>
</html>